package com.dexclassdemo.liuguangli.apkbeloaded;

import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * Created by zhangmian on 16/4/6.
 */
public class ImportedFragment extends Fragment{

    private Resources resources;

    public void setResource(Resources resources){
        this.resources = resources;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(resources.getLayout(R.layout.content_main_2), null);
//        TextView textView = new TextView(getContext());
//        textView.setText("Imported Success !!!");
//        textView.setTextSize(30);
//        textView.setTextColor(Color.BLACK);
//        textView.setBackgroundColor(Color.GREEN);
//        textView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
//        return textView;
    }
}
